package com.shermanzhou.juel.condition;

import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import lombok.Data;

/**
 * @author zhouchaoqun02
 * @date 2020-10-21 10:28
 */
@Data
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "leaf")
@JsonSubTypes({
        @JsonSubTypes.Type(value=ConditionLeafNode.class, name = "true"),
        @JsonSubTypes.Type(value=ConditionSetNode.class, name = "false")
})
public abstract class ConditionTreeNode {
    public abstract boolean isLeaf();
}
